#include<stdlib.h>
#include <stdio.h>
int main()
{
    int arr[20][20] = { 0 };
    for (int i = 0; i < 20; i++)
    {
        arr[i][0] = 1;
    }
    for (int i = 1; i < 20; i++)
    {
        for (int j = 1; j < 20; j++)
        {
            arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
        }
    }
    for (int i = 0; i < 20; i++)
    {
        for (int j = 19 - i; j > 0; j--)
        {
            printf("   ");
        }
        for (int j = 0; j < i + 1; j++)
        {
            printf("%-6d", arr[i][j]);
        }
        printf("\n");
    }
    system("color 3");
    return 0;
}